package chances.epg.api.controller.model;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import chances.epg.entity.biz.BizPositionItem;

public class PositionItemInfo {
	private BizPositionItem bizPositionItem;
	
	public PositionItemInfo(BizPositionItem bizPositionItem){
		this.bizPositionItem = bizPositionItem;
	}
	
	public String getTitle() {
		return this.bizPositionItem.getTitle();
	}
	
	public String getSubTitle() {
		return this.bizPositionItem.getSubTitle();
	}
	
	public String getIcon() {
		return this.bizPositionItem.getIcon();
	}
	
	public String getObjType() {
		return this.bizPositionItem.getObjType();
	}
	
	public String getObjValue() {
		return this.bizPositionItem.getObjValue();
	}
	
	public String getChannelCode() {
		return this.bizPositionItem.getChannelCode();
	}
	
	@JsonSerialize(using = DateTimeSerializer.class)
	public Date getBeginTime() {
		return this.bizPositionItem.getBeginTime();
	}
	
	@JsonSerialize(using = DateTimeSerializer.class)
	public Date getEndTime() {
		return this.bizPositionItem.getEndTime();
	}
	
	public String getLinkType() {
		return this.bizPositionItem.getLinkType();
	}
}
